package com.cloud.shopping.goods.service.impl;

import com.cloud.shopping.goods.model.SkuAttribute;
import com.cloud.shopping.goods.mapper.SkuAttributeMapper;
import com.cloud.shopping.goods.service.SkuAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author John.zhang
 * @since 2020-12-28
 */
@Service
public class SkuAttributeServiceImpl extends ServiceImpl<SkuAttributeMapper, SkuAttribute> implements SkuAttributeService {

    @Resource
    private SkuAttributeMapper skuAttributeMapper;


    /**
     * 根据分类ID查询属性集合
     * @param id id
     * @return List
     */
    @Override
    public List<SkuAttribute> queryList(Integer id) {
        return skuAttributeMapper.queryByCategoryId(id);
    }
}
